package com.lovo.service.impl;

import com.lovo.dao.ProductDAO;
import com.lovo.model.ProductDO;
import com.lovo.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @title
 * @author: luo
 * @date: 2020/11/19 15:37
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    private ProductDAO productDAO;

    @Override
    public List<ProductDO> findAll() {
        return productDAO.findAll();
    }

    @Override
    public void save(ProductDO productDO) {
        productDAO.save(productDO);
    }

    @Override
    public void delete(ProductDO productDO) {
        productDAO.delete(productDO);
    }
}
